#ifndef POWERITEM_H
#define POWERITEM_H

#include <QGraphicsObject>

class PowerItem : public QGraphicsObject
{
public:
    PowerItem():
        m_x(119.0)
    {

    }

    ~PowerItem()
    {

    }

    virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
    {
        painter->drawPixmap(QRectF(m_x,0.0,119.0 - m_x,16.0),m_ballImage,QRectF(0.0,0.0,119.0 - m_x,16.0));
    }

    virtual QRectF boundingRect() const
    {
        return QRectF(0.0,0.0,119.0,16.0);
    }
public:
    QPixmap     m_ballImage;
    qreal       m_x;
};

#endif // POWERITEM_H
